Class FleschUtilsTest

java.lang.Object
com.fsf.news.utils.FleschUtilsTest

class FleschUtilsTest extends Object
Unit tests for the FleschUtils class.
  • Constructor Details

    • FleschUtilsTest

      FleschUtilsTest()
  • Method Details

    • testComputeFleschMetrics

      @ParameterizedTest @MethodSource void testComputeFleschMetrics(String input, com.fsf.news.model.stats.FleschMetrics expected)
      Tests the computeFleschMetrics method with various input texts.
      Parameters:
      input - The input text
      expected - The expected Flesch metrics
    • testComputeFleschMetrics

      static Stream<org.junit.jupiter.params.provider.Arguments> testComputeFleschMetrics()
      Provides test data for the testComputeFleschMetrics test method.
      Returns:
      A stream of test data